package com.marlowe.asyouknow.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @program: as-you-know
 * @description: 新闻实体类
 * @author: Marlowe
 * @create: 2020-12-21 11:06
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("新闻实体类")
@Document(indexName = "southern_weekend")
public class News {

    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("摘要")
    private String summary;
    @ApiModelProperty("链接")
    private String url;
    @ApiModelProperty("正文")
    private String content;

    public News(String title, String content, String url) {
        this.title = title;
        this.content = content;
        this.url = url;
    }
}
